import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 引入element 和样式
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

// 使用
Vue.use(ElementUI)

Vue.config.productionTip = false

// 引入重置样式
import './assets/css/index.scss'
// 引入字体图标
import './assets/fonts/iconfont.css'
// 过滤器
import * as filters from '@/filters'
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

// 引入权限文件
import './permission'

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
